package cn.imu.appdevexperiment2020._3activity;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import cn.imu.appdevexperiment2020.R;
import cn.imu.appdevexperiment2020.common.BaseActivity;

/**
 * 描述:
 *
 * @author chenconghua
 * @version 1.0
 * @create 2022-11-13 15:28
 */
public class NewsTitleActivity extends BaseActivity {
   private FragmentManager manager;
   private FragmentTransaction transaction;
   @Override
   protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.news_title_frag);
//      String newsTitle=getIntent().getStringExtra("news_title");
//      String newsTitle="ccc";
//      String newsContent = "ddd";
//      String newsContent = getIntent().getStringExtra("news_content");
      NewsTitleFragment newsTitleFragment = (NewsTitleFragment) getSupportFragmentManager().findFragmentById(R.id.news_title_fragment);
//      newsTitleFragment.
//      newsContentFragment.refresh(newsTitle,newsContent);
//      newsContentFragment.refresh(newsTitle,newsContent);
//      newsTitleFragment.onCreateView()
   }
}
